<?php
ob_start();
include_once('./libs/bn_path.php');
if(str_replace('\\','/',__file__)==$_SERVER['SCRIPT_FILENAME'])
bn_redirect('error.php');
bn_include_lib('bn_parsidate');

global $conf;
$conf=new bn_config;
global $login;
$login=new bn_login;
if($conf->Get_value('undercons')=='checked')
bn_redirect('under_construct.php');
global $user_info;
if($conf->Get_value('enable_anony')=='checked')
$user_info=$login->login_check('login.php',true);
else
$user_info=$login->login_check('login.php',false);

global $theme;
$theme=new bn_template;
$theme->temfile='user_theme.php';
global $lang;
$lan=new bn_lang;
$lan->load_lang('user',$info->lang);
?>